import { IsAlphanumeric, IsEmail, IsNotEmpty } from "class-validator";

export class RegisterUserDto {
    @IsNotEmpty({ message: '请输入邮箱' })
    @IsEmail({}, { message: '输入的邮箱无效' })
    readonly email: string;
    // @IsAlphanumeric({},{message:'密码至少包含一个数字and一个英文字母'})
    @IsNotEmpty({ message: "请输入密码" })
    readonly password: string;

    // @IsNotEmpty({message:"请输入验证码"})
    // readonly code:string;
}
